import request from '@/utils/request'

// 查询顺风车半径设置列表
export function listTailwinds(query) {
  return request({
    url: '/vehicle/tailwinds/list',
    method: 'get',
    params: query
  })
}

// 查询顺风车半径设置详细
export function getTailwinds(tailwindsId) {
  return request({
    url: '/vehicle/tailwinds/' + tailwindsId,
    method: 'get'
  })
}

// 新增顺风车半径设置
export function addTailwinds(data) {
  return request({
    url: '/vehicle/tailwinds',
    method: 'post',
    data: data
  })
}

// 修改顺风车半径设置
export function updateTailwinds(data) {
  return request({
    url: '/vehicle/tailwinds',
    method: 'put',
    data: data
  })
}

// 删除顺风车半径设置
export function delTailwinds(tailwindsId) {
  return request({
    url: '/vehicle/tailwinds/' + tailwindsId,
    method: 'delete'
  })
}
